<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <link rel="icon" type="image/svg+xml" href="/vite.svg" />
    <link rel="stylesheet" href="/css/iconfont.css">
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Vite + React + TS</title>
  </head>
  <body>
    <div id="root"></div>
    <script type="module" src="/src/main.tsx"></script>
    <script>
      function resize() {
        let html = document.querySelector("html");
        let body = document.documentElement || document.body;
        let w = body.clientwidth;//获取屏幕的宽度
        html.style.fontsize = (w / 7.5) + "px";
      }
      resize();
      window.addEventListener("resize",resize);
      
    </script>
  </body>
</html>
